﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Brain;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Brain.Dev;

namespace Demos
{
    public class Stereoscopic2D : DemoScreen
    {
        public Stereoscopic2D()
        {
            for (int i = 0; i < 5; i++)
            {
                Vector2 v = new Vector2(50 + (i * 100), 640);
                Sprite sprite = new Sprite();
                sprite.Position = v;
                sprite.BoundsRectangle = new Rectangle((int)v.X * 2, (int)v.Y * 3, i * 50, i * 50);
                sprite.BoundsRectangle = new Rectangle(
                    sprite.BoundsRectangle.X,
                    RectangleUtil.CenterRectangleY(sprite.BoundsRectangle, 720),
                    sprite.BoundsRectangle.Width,
                    sprite.BoundsRectangle.Height);
                sprite.Shadow = 3;


                sprite.BoundsRectangleColor = Color.Gray;
                sprite.Rendering = SpriteRendering.Rendered;

                sprite.StereoOffset = new Vector2(i * 10, 0);
            }
        }
    }
}
